package com.burgeon.backend.SHOPBACKEND.service;


import com.burgeon.backend.SHOPBACKEND.entity.WxChatImage;
import com.burgeon.backend.SHOPBACKEND.entity.vip.Vip;
import com.burgeon.backend.SHOPBACKEND.entity.weixin.WeiXinUser;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface AWechatService {
//    String processRequest(HttpServletRequest request) throws UnsupportedEncodingException;
    //安卓给微信发送文本消息
     void messAndroid(String context, String openId, String daoId);
    //发送图片
    void messAndroidImage(String context,String openId,String daoId);
    /**上传聊天图片*/
    WxChatImage upWeChatImage(MultipartFile file, String token);

     //从微信接收信息
    String messRequest(HttpServletRequest request, HttpSession session) throws IOException;

    /**
     * ERP修改是否有未读消息
     */
    void  UpVipUnread(String openID, String unread, String type, String state, String content, Vip vip,String msgType,String token);

    void CreteVipCode(String openId,String type,String employeeName,String hrOpenid,String state,String content,String token);

    //接收微信小程序用户消息
    String acceptMessage(Map<String, String> requestMap, HttpServletResponse response,String token);

    void messCopWeChat(String context,String openId,String daoId,String token);




    //安卓给微信发送图片信息
    //  void messImagAndroid();

//    com.alibaba.fastjson.JSONObject getSendCondition(String startTime, String endTime) throws ParseException;
//
//     List<String> getAllWeiXinUser();
//
//    //public List getWeiXinInfo(String access_token, List open_id);
//
//    WeiXinUser getUserInfo(String accessToken, String openId);

    //获取微信公众号的所有用户的信息
//         void getAllUsersInfo();


}
